package com.mmy.fta.usercenter.enums;

/**
 * @author guohao.xie
 * @apiNote
 * @exportable
 * @since 2021/11/4
 */
public enum DriverMemberShipTypeEnums {
    //尊享会员 油宝会员 冷链会员
    // 尊无 油无 冷无
    ZERO(0,"000"),

    // 尊无 油无 冷有
    FIRST(1,"001"),

    // 尊无 油有 冷无
    SECOND(2,"010"),

    // 尊无 油有 冷有
    THIRD(3,"011"),

    // 尊有 油无 冷无
    FOUTH(4,"100"),

    // 尊有 油无 冷有
    FIFTH(5,"101"),

    // 尊有 油有 冷无
    SIXTH(6,"110"),

    // 尊有 油有 冷有
    SEVENTH(7,"111");


    private int code;
    private String msg;

    private DriverMemberShipTypeEnums(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }

    public static DriverMemberShipTypeEnums driverMemberShipTypeEnums(Integer code) {
        if (null == code) {
            return null;
        } else {
            DriverMemberShipTypeEnums[] var1 = values();
            int var2 = var1.length;

            for (int var3 = 0; var3 < var2; ++var3) {
                DriverMemberShipTypeEnums driverMemberShipTypeEnums = var1[var3];
                if (driverMemberShipTypeEnums.code == code) {
                    return driverMemberShipTypeEnums;
                }
            }

            return null;
        }
    }
}
